<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>


<div class="leftpanel col-sm-2 col-md-2 sidebar">
	<div id="mylist" class="list-group">
		<a id="listactive" class="list-group-item  disabled " href="#"><strong><spring:message
					code="label.action" /></strong></a> <a id="accountinfo"
			class="list-group-item " href="accountinfo"><span
			class="glyphicon glyphicon-info-sign"></span> <spring:message
				code="label.accountinfo" /> </a> <a id="viewtrans"
			class="list-group-item" href="viewtransaction"> <span
			class="glyphicon glyphicon-th-list"></span> <spring:message
				code="label.viewTransaction" /></a> <a id="createtrans"
			class="list-group-item" href="createtransaction"><span
			class="glyphicon glyphicon-send"></span> <spring:message
				code="label.createTransaction" /></a>
		<sec:authorize access="hasRole('ROLE_ADMIN') and isAuthenticated()">
			<a id="userList" class="list-group-item " href="userlist"><span
				class="glyphicon glyphicon-tower"></span> <spring:message
					code="label.createUser" /></a>
			<a id="admin" class="list-group-item well" href="adminManage"><span
				class="glyphicon glyphicon-tower"></span> <spring:message
					code="label.viewLog" /></a>



		</sec:authorize>

	</div>
	  
	 
	<div id="advanceSearch" class="panel panel-primary">
		<div class="panel-heading">
			<spring:message code="label.advancedSearch" />
		</div>
		<div class="panel-body">
			<form action="searchtransaction.html" method="POST">
				<table>
					<tr>
						<td><input id="datepicker" name="date" type="text" required
							class="form-control"
							placeholder="<spring:message code="label.startDay" />"
							value="${startdate}" readonly="readonly"></td>
					</tr>
					<tr>
						<td><input id="datepicker2" name="date1" type="text" required
							class="form-control"
							placeholder="<spring:message code="label.endDay" />"
							value="${enddate}" readonly="readonly"></td>
					</tr>
					<tr>
						<td><select class="selectpicker form-control"
							name="transactionType">
								<option value="all"><spring:message
										code="label.allTransactions" /></option>
								<option value="sent"><spring:message
										code="label.sentTransactions" /></option>
								<option value="received"><spring:message
										code="label.receivedTransactions" /></option>
						</select></td>
					</tr>

					<tr>

						<td>
							<div align="right">
								<button class="btn  btn-primary form-control " type="submit"
									value="submit" name="submit">
									<spring:message code="label.search" />
								</button>
							</div>

						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>

<script>
	//datetiem picker
	$('#datepicker').datetimepicker({
		pickTime : false,
		defaultDate : new Date()

	});
	$('#datepicker2').datetimepicker({
		pickTime : false,
		defaultDate : new Date()
	});

	$("#datepicker").on("dp.change", function(e) {
		$('#datepicker2').data("DateTimePicker").setMinDate(e.date);
	});
	$("#datepicker2").on("dp.change", function(e) {
		$('#datepicker').data("DateTimePicker").setMaxDate(e.date);
	});
</script>

